<template>
  <div>
    <router-view></router-view>
    <ul class="footer-nav">
      <li>
        <i class="van-icon van-icon-wap-home-o"></i>
        <router-link to="/home">首页</router-link>
      </li>
      <li>
        <i class="van-icon van-icon-apps-o"></i>
        <router-link to="/list">分类</router-link>
      </li>
      <li>
        <i class="van-icon van-icon-shopping-cart-o"></i>
        <router-link to="/shopcar">购物车</router-link>
      </li>
      <li>
        <i class="van-icon van-icon-user-o"></i>
        <router-link to="/my">我的</router-link>
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  data() {
    return {
      msg: "",
    };
  },
  mounted() {},
  methods: {},
};
</script>

<style lang="scss" scoped>
.footer-nav {
  background-color: #fff;
  display: flex;
  align-items: center;
  height: 1.2rem; //61.41px
  border-top: 0.01rem solid #e9e9e9;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  font-size: 0.24rem; //12px
  > li {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  i {
    font-size: 0.416rem; //20.8
  }
}
</style>
